package com.tanhua.dubbo.mongo.api;

import com.tanhua.model.mongo.Questions;
import org.bson.types.ObjectId;

import java.util.List;
import java.util.Map;

public interface QuestionsApi {

    //根据问卷id查询所有题目的集合
    Map<ObjectId, List<Questions>> findQuestions(List<ObjectId> ids);

    //根据questionId 查询 问卷id
    ObjectId findByQuestionId(String questionId);
}
